package emap;

class Tile extends LeveledObject
{
	private int myLevel; //holds the level value of the tile.
	private int myImagePointer; //this is the index of the tileset to be used in drawing this tile.
	private boolean[] myTerrain; //slot 0: walkable
	private int myX, myY;
	public final static int myTileSize = 32;
	
	public Tile(int imagePointer, int level)
	{
		setImagePointer(imagePointer);
		setLevel(level);
	}
	public Tile()
	{
		myImagePointer=0;
		myLevel=0;
	}
	public void setLevel(int level) //sets myLevel to the level specified
	{
		myLevel = level;
	}
	public void setImagePointer(int num) //sets myImagePointer to the number specified
	{
		myImagePointer = num;
	}
	
	//***//
	public int getX()
	{
		return myX;
	}
	public int getY()
	{
		return myY;
	}
	public int getLevel()
	{
		return myLevel;
	}
	public int getImagePointer()
	{
		return myImagePointer;
	}
}